package com.douqu.game.core.e;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2017-12-25 15:59
 */
public enum E_GMType implements BaseEnum {

    SUPER(1, "超级管理员"),
    ADMIN(2, "普通管理员"),
    COMMON(3, "普通客服")
    ;

    int code;

    String msg;

    E_GMType(int code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public static E_GMType forNumber(int value)
    {
        for(E_GMType gmType : values())
        {
            if(gmType.getCode() == value)
                return gmType;
        }
        return null;
    }
}
